package com.baidu.mapapi;

import java.util.ArrayList;

public class MKRoutePlan
{
  private int a;
  private ArrayList<MKRoute> b;

  void a(int paramInt)
  {
    this.a = paramInt;
  }

  void a(ArrayList<MKRoute> paramArrayList)
  {
    this.b = paramArrayList;
  }

  public int getDistance()
  {
    return this.a;
  }

  public int getNumRoutes()
  {
    int i;
    if (this.b != null)
      i = this.b.size();
    while (true)
    {
      return i;
      i = 0;
    }
  }

  public MKRoute getRoute(int paramInt)
  {
    MKRoute localMKRoute;
    if (this.b != null)
      localMKRoute = (MKRoute)this.b.get(paramInt);
    while (true)
    {
      return localMKRoute;
      localMKRoute = null;
    }
  }
}